package com.zxx.pattern.mediatorPattern.mediator3;

/**
 * @author zxx on 2021/5/11
 */
public class ColleagueCDDevice extends Colleague {

    private String data;

    public ColleagueCDDevice(Mediator3 mediator) {
        super(mediator);
    }

    public String read() {
        return data;
    }

    public void load() {
        data = "视频数据,音频数据";

        //通知中介者 自身状态的变化
        mediator.changed(this);
    }
}
